Nordic Semiconductor /nrf52840 /PWM0 /DECODER

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as DECODER

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (Common)LOAD 0 (RefreshCount)MODE

LOAD=Common, MODE=RefreshCount

Description

Configuration of the decoder

Fields

LOAD

How a sequence is read from RAM and spread to the compare register

0 (Common): 1st half word (16-bit) used in all PWM channels 0…3

1 (Grouped): 1st half word (16-bit) used in channel 0…1; 2nd word in channel 2…3

2 (Individual): 1st half word (16-bit) in ch.0; 2nd in ch.1; …; 4th in ch.3

3 (WaveForm): 1st half word (16-bit) in ch.0; 2nd in ch.1; …; 4th in COUNTERTOP

MODE

Selects source for advancing the active sequence

0 (RefreshCount): SEQ[n].REFRESH is used to determine loading internal compare registers

1 (NextStep): NEXTSTEP task causes a new value to be loaded to internal compare registers

Links

() ()